const KEY = 'token'
// token包,获取本地token
export const getToken = () => {
  return localStorage.getItem(KEY)
}

// 存储token
export const setToken = (newToken) => {
  localStorage.setItem(KEY, newToken)
}

// 清除本地token缓存
export const delToken = () => {
  localStorage.removeItem(KEY)
}